import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/sysm/platform/',
    method: 'get',
    params: query
  })
}

export function getListEnable(query) {
  return request({
    url: '/sysm/platform/listEnable',
    method: 'get',
    params: query
  })
}

export function saveOrUpdate(param) {
  return request.post('/sysm/platform/', JSON.stringify(param))
}

export function updateStatus(param) {
  return request({
    url: `/sysm/platform/updateStatus`,
    method: 'post',
    params: param
  })
}

export function deleteById(id) {
  return request({
    url: `/sysm/platform/${id}`,
    method: 'delete'
  })
}

